package com.jinbei.mapper;

import com.jinbei.domain.Message;

import java.util.List;

public interface MessageMapper {

    /**
     * @author zflu
     * @Description   socket消息新增
     * @date 2018/8/20 11:12
     * @param message
     * @return int
     */
    int insertMessage(Message message);

    /**
     * @author zflu
     * @Description   socket消息详情
     * @date 2018/8/20 11:13
     * @param id
     * @return com.jinbei.domain.Message
     */
    Message queryMessageById(Integer id);

    /**
     * @author zflu
     * @Description socket消息列表
     * @date 2018/8/20 11:14
     * @param
     * @return java.util.List<com.jinbei.domain.Message>
     */
    List<Message> queryMessageList();
}